import Vue from 'vue'
import Vuex from 'vuex'
import book from './book'
import bookdetail from './bookdetail'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        navshow: true,
        gg: 'https://easyreadfs.nosdn.127.net/uLuh8_kbOco2ujai2QH1ZQ==/8796093025060938066#10801920',
        gao: 0
    },
    mutations: {
        changenavshow(state, value) {
            state.navshow = value
        },
        setgao(state, value) {
            state.gao = value
                // console.log(state.gao)
        },
    },
    actions: {
        setguanggao(content, value) {
            // content.commit("guanggao", value)
            // console.log(111, value)
        }
    },
    modules: {
        book,
        bookdetail,
    }
})